

from Keyword import Keyword

web=Keyword()
web.openBrower()
web.visiturl('http://www.testingedu.com.cn:8000/index.php/Home/user/login.html')
#登录操作
web.input('//*[@id="username"]',"13800138006")
web.input('//*[@id="password"]',"123456")
# web.driver.save_screenshot('./b1.png')
# ele=web.findelement('//*[@id="verify_code_img"]')
# ele.screenshot('abc1.png')
# web.screenshotAll('all.png')
# web.screenshotByelement('//*[@id="verify_code_img"]','reg.png')

# web.click('//a[@name="sbtbutton"]')
# web.sleep('2')
verify=web.verify('//*[@id="verify_code_img"]','verify.png')
web.input('//*[@id="verify_code"]',verify)



